PlantFrame

In [1]:
import k3d
from openalea.plantgl.all import *
from oawidgets.plantgl import PlantGL
import openalea.mtg
NOT using graph editor observer No module named grapheditor
In [2]:
plot = k3d.plot();
In [3]:
from openalea.deploy.shared_data import shared_data
data = shared_data(openalea.mtg)
In [4]:
from openalea.mtg import *
g = MTG(data/'noylum2.mtg')
In [5]:
drf = data/'walnut.drf'
dressing_data = dresser.dressing_data_from_file(drf)
dressing_data = plantframe.DressingData(DiameterUnit=10)

pf = plantframe.PlantFrame(g,
                       TopDiameter='TopDia',
                       DressingData = dressing_data)

In [6]:
scene = pf.plot(gc=True, display=False)
In [7]:
PlantGL(scene)